package com.example.blades.myalarmservice;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class AlarmReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        context.startService(new Intent(context,NotifyService.class));
        /*相当于: Intent i=new Intent(context,NotifyService.class);
        * context.startService;*/
    }
}
